﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Shop.Core.Domain.Customers;
using Shop.Core.Properties;

namespace Shop.Core.Domain.Orders
{
    public class ShippedNode : BaseFlowNode
    {
        public override bool CanPay(Order order)
        {
            return false;
        }

        /// <summary>
        /// 要在用户行为上控制只有客服才能编辑
        /// </summary>
        /// <param name="order"></param>
        /// <returns></returns>
        public override bool CanEdit(Order order)
        {
            return true;
        }
        
        public override OrderStatus StatusCode
        {
            get
            {
                return OrderStatus.Shipped;
            }
        }

        public override bool CanCancel(Order order)
        {
            return false;
        }
    }
}
